<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%@ taglib prefix="f" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path=request.getContextPath();
%>    

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--导入css样式  -->
<link href="/js/bootstrap-4.3.1/css/bootstrap.css" rel = "stylesheet">

	<script type="text/javascript" src="/js/js/jquery-3.2.1/jquery.js"> </script> 
    <script type="text/javascript" src="/js/js/jquery.validate.js"></script>
	<script type="text/javascript" src="/js/js/jqueryvalidate/localization/messages_zh.js"></script>
	<script type="text/javascript" src="/js/bootstrap-4.3.1/js/bootstrap.js"></script>
	
	
	
<link href="/js/kindeditor/themes/default/default.css" rel="stylesheet">
<link href="/js/kindeditor/plugins/code/prettify.css" rel="stylesheet">
	<script type="text/javascript" src="/js/kindeditor/kindeditor-all.js"></script>
	<script type="text/javascript" src="/js/kindeditor/lang/zh-CN.js"></script>
	<script type="text/javascript" src="/js/kindeditor/plugins/code/code.js"></script>

<title>Insert title here</title>
</head>
<body>

	
<nav class="navbar navbar-expand-lg navbar-light bg-light">
  
  <a class="navbar-brand" href="#"><img alt="logo" src="/js/images/logo.png" width="40px" height="40px"></a>
  
  <div class="collapse navbar-collapse justify-content-end" id="navbarNavDropdown">
    <ul class="navbar-nav">
      
      <li class="nav-item">
        <a class="nav-link" href="#"><img alt="个人头像" src="" width="40px" height="40px"> </a>
      </li>
      
      <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          		个人中心
        </a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
          <a class="dropdown-item" href="#">设置</a>
          <a class="dropdown-item" href="#">首页</a>
          <a class="dropdown-item" href="#">注销</a>
        </div>
      </li>
    </ul>
  </div>
</nav>

<div class="container-fluid" style="margin-top:50px;margin-bottom:50px">
	<div class="row">
		<!-- 左边菜单 -->
		<div class="col-md-2">  
			<div class="list-group">
			  <button type="button" class="list-group-item list-group-item-action" onclick="showWork(this,'/article/addArticle')">发布文章</button>
			  <button type="button" class="list-group-item list-group-item-action" onclick="showWork(this,'/article/findArticleByUid')">我的文章</button>
			  <button type="button" class="list-group-item list-group-item-action">我的评论</button>
			  <button type="button" class="list-group-item list-group-item-action">修改头像</button>
			</div>
			
		</div>
		<!-- 工作区 -->
		<div class="col-md-9" id="workContent">
		
		</div>
	</div>
</div>



<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-bottom">
  <div class="collapse navbar-collapse justify-content-center " id="navbarNavDropdown">
  		开源项目距，欢迎指导！
  </div>
</nav>
<script type="text/javascript">

	function showWork(obj,url){
		alert(url);
		$(".list-group button").removeClass("active");
		$("#workContent").load(url);
		$(obj).addClass("active");
	}

	KindEditor.ready(function(K) {
		var editor1 = K.create();
	//		prettyPrint();
	});



</script>


</body>
</html>